{% extends "base_facebook.html" %}
{% block title %}Competition is closed{% endblock %}
{% block body %}closed{% endblock %}

{% block page_content %}
    <header class="tab-header">
        <h1>{{ competition.university.closedPageTitle }}</h1>
    </header>
    <section class="app-content">
        <div class="img-holder">
            <img src="{{ settings.MEDIA_URL }}{{ competition.university.closedImage }}" />
        </div>
        <span class="arrow-seperator"></span>
        <div class="highlighted">
            <p>
                Well done to all the lucky prize draw winners!
            </p>
            <p>
                You can still order your 2012 Graduate Hoody from the link below. 
                These Two-Tone Varsity hoodies are made with 80% cotton. A warm, 
                soft memento of your time at Uni.
            </p>
        </div>
        <p>
            Deadline for orders is 16th March 2012. So order now to avoid disappointment!
        </p>
        <div class="btn-wrap">
            <a class="btn" target="_blank" href="{{ competition.university.orderFromHere }}">Order yours here</a>
        </div>
        <a class="share">share</a>
    </section>
{% endblock page_content %}

{% block footer_script %}
<div id="fb-root"></div>
<script src="//connect.facebook.net/en_US/all.js"></script>
<script>
    FB._https = true;
    FB.init({
        appId  : '{{ competition.app_id }}',
        status : false,
        cookie : false,
        xfbml  : true
    });

    window.fbAsyncInit = function() {
        FB.Canvas.setAutoGrow();
    }

    //click for fb dialog in global.js
    /*
     * shareClick is invoked (from globals.js) when the .share-link is clicked.
     */
    function shareClick(){
        FB.ui( {
            {% include "facebook/templates/_share.html" %}
        });
    }

    function scrollTo(){
        FB.Canvas.scrollTo(0,0);
    }
    
    $('a.share').click(function(){
        shareClick();
    });
</script>
{% endblock footer_script %}
